<div class="clients view">
<h2><?php  __('I18N_CLIENT');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $client['Client']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Label'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $client['Client']['label']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('I18N_CRUD_ACTIONS'); ?></h3>
	<ul>
            <li><a href="/index.php/admin/clients/edit/<?php echo $client['Client']['id'] ?>"><?php echo sprintf(__('I18N_EDIT_ENTITY', true), __('I18N_CLIENT', true)) ?></a></li>
            <li><a href="/index.php/admin/clients/delete/<?php echo $client['Client']['id'] ?>"><?php echo sprintf(__('I18N_DELETE_ENTITY', true), __('I18N_CLIENT', true)) ?></a></li>
            <li><a href="/index.php/admin/clients/index/"><?php echo sprintf(__('I18N_LIST_ENTITIES', true), __('I18N_CLIENTS', true)) ?></a></li>
            <li><a href="/index.php/admin/clients/add"><?php echo sprintf(__('I18N_ADD_ENTITY', true), __('I18N_CLIENT', true)) ?></a></li>
            <li><a href="/index.php/admin/processes/index/"<?php echo $client['Client']['id'] ?>><?php echo sprintf(__('I18N_LIST_ENTITIES_RELATED', true), __('I18N_PROCESSES', true)) ?></a></li>
            <li><a href="/index.php/admin/processes/add/"<?php echo $client['Client']['id'] ?>><?php echo sprintf(__('I18N_ADD_ENTITY', true), __('I18N_PROCESS', true)) ?></a></li>
	</ul>
</div>
<div class="related">
	<h3><?php printf(__('Related %s', true), __('Processes', true));?></h3>
	<?php if (!empty($client['Process'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Label'); ?></th>
		<th><?php __('Client Id'); ?></th>
		<th><?php __('Workflow Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($client['Process'] as $process):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $process['id'];?></td>
			<td><?php echo $process['name'];?></td>
			<td><?php echo $process['label'];?></td>
			<td><?php echo $process['client_id'];?></td>
			<td><?php echo $process['workflow_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'processes', 'action' => 'view', $process['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'processes', 'action' => 'edit', $process['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'processes', 'action' => 'delete', $process['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $process['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Process', true)), array('controller' => 'processes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
